<!DOCTYPE html>

<!--计划完成情况-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>

<body>
    
<div id="app" v-cloak>   
        <!-- <el-container style="height:100%" > -->
        <!-- <el-header style="height:auto"> -->
        <el-form label-position=" right" ref="form" :inline="true" :model="formInline" class="demo-form-inline"
            style="margin-bottom: 15px;">
            <el-row>
                <el-col class="head-tool">
                    
<div class="new_title fl"><strong><img src="/static/images/icon1.png" />培训计划完成情况列表</strong></div>
                    <span>
                        <btn :text="col.btnSelect" imgsrc="/static/images/search.png" linetype="3" @click="onSubmit">
                        </btn>
                        <btn-export-list url="xxxx" :forminline="this.formInline" linetype="4"></btn-export-list>
                    </span>
                </el-col>

            </el-row>
            <el-row class="popupW100">
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input v-model="formInline.model.curriculum"
                                :placeholder="Completionoftrainingplan.curriculum" size="mini">
                                <template slot="prepend">
                                    {{Completionoftrainingplan.curriculum+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>

                </el-col>

                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item size="mini">
                            <el-input>
                                <template slot="prepend">
                                    {{Completionoftrainingplan.Examinationmethods+mark.m}}
                                </template>
                                <el-select @visible-change="visibleChange" v-model="formInline.model.Examinationmethods" slot="suffix"
                                    :placeholder="Completionoftrainingplan.Examinationmethods">
                                    <el-option label="请选择" value=""></el-option>
                                    <el-option v-for="item in Examinationmethods" :label="item.value"
                                        :value="item.value"></el-option>
                                </el-select>
                            </el-input>

                        </el-form-item>
                    </div>
                </el-col>
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{Completionoftrainingplan.TrainingtimeStar+mark.m}}
                                </template>
                                <el-date-picker v-model="formInline.model.TrainingtimeStar" type="date" slot="suffix"
                                    size="mini" placeholder="选择日期">
                                </el-date-picker>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{Completionoftrainingplan.TrainingtimeEnd+mark.m}}
                                </template>
                                <el-date-picker v-model="formInline.model.TrainingtimeEnd" type="date" slot="suffix"
                                    size="mini" placeholder="选择日期">
                                </el-date-picker>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

        </el-form>
        <!-- </el-header> -->
        <!-- <el-main style="padding-top:0;"> -->
        <!-- <el-row> -->

        <el-col span="24">


            <el-table ref="table" stripe :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight" border
                @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;height: 100%;">
                <!-- <el-table-column type="selection" style="
        padding-top: 0px;
        padding-bottom: 0px;
    " align="center" width="55" :reserve-selection="true">
                </el-table-column> -->

                <!-- 除第一列以外 遍历所有字段 -->
                <!--user建议替换为表名 需要与resource文件夹下js 中的对象保持一致  下同-->
                <el-table-column type="index" :label="col.SequenceNumber" :index="indexMethod" width="50"
                    show-overflow-tooltip="true"></el-table-column>
                <el-table-column prop="Trainingtime" :label="Completionoftrainingplan.Trainingtime" width="100">
                </el-table-column>
                <el-table-column prop="curriculum" :label="Completionoftrainingplan.curriculum" min-width="150"
                show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column prop="Trainingtarget" :label="Completionoftrainingplan.Trainingtarget">
                </el-table-column>
                <el-table-column prop="Numberofplannedtrainees"
                    :label="Completionoftrainingplan.Numberofplannedtrainees" width="110">
                </el-table-column>
                <el-table-column prop="Numberofactualtrainees" :label="Completionoftrainingplan.Numberofactualtrainees" width="110">
                </el-table-column>
                <el-table-column prop="Coursehours" :label="Completionoftrainingplan.Coursehours">
                </el-table-column>
                <el-table-column prop="budget" :label="Completionoftrainingplan.budget">
                </el-table-column>
                <el-table-column prop="Examinationmethods" :label="Completionoftrainingplan.Examinationmethods">
                </el-table-column>



            </el-table>
            <el-row type="flex" justify="end">
                <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                    :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                    :layout="ListItem.layout" :total="ListItem.total">
                </el-pagination>

            </el-row>
            <!--user建议替换为表名 需要与resource文件夹下js 中的对象保持一致  -->
        </el-col>

        </el-row>

    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                ListItem: ListItem,
                value1: '',
                Examinationmethods: [],
                checked: true,
                isShow: true,
                formInline: {
                    value1: '',
                    // 遍历所有列 均为字符串即可
                    model: {
                        Name: '', Category: '', Teacher: '', LlearningTime: '', Courseware: '', IsEncrypted: '',TrainingtimeStar:'',TrainingtimeEnd:''
                    },
                    offset: 0,
                    limit: 10
                }
            },
            mounted: function () {

                console.log(getDicDataArray(["01", "02", "03", "04"]))

                //获取下拉菜单内容
                this.Examinationmethods = getDicData('w64');


                //初始化数据
                this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                closeDialog: function () { closeDialog(this); },
                //Model 替换成 表名
                onDelete: function () { onDelete(this, '/api/Completionoftrainingplan/DeleteMuti'); },

                handleSelectionChange: function (val) { handleSelectionChange(this, val); },
                //Model 替换成 表名
                OpenInput: function (val, id) { DialogShow(this, val, "CompletionoftrainingplanInput.html", id); },
                //Model 替换成 表名
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/Completionoftrainingplan/GetList') },

                onSubmit: function () { onSubmit(this); },

                handleSizeChange: function (val) { handleSizeChange(this, val); },

                handleCurrentChange: function (val) { handleCurrentChange(this, val); },

                handleNodeClick: function (data) {
                    this.formInline.model.Category = data.id;
                    this.GetPageData(1);
                }
            }
        });
    </script>

</body>

</html>